<?php
    class AgendaModel extends Model{
        public $_tabela = "gm_parties";

        public function listaAgenda( $days, $offset = null ){
            return $this->read( "CURDATE() <= party_date AND party_date BETWEEN CURDATE() AND DATE_ADD( CURDATE() , INTERVAL +".$days." DAY ) ", null, $offset, null ,'party_date' );
        }
    }